package org.jeecg.modules.basedata.mapper;


import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.entity.basedata.*;
import org.jeecg.model.basedata.Area;

//小程序
public interface WxUserMapper extends BaseMapper<XcxUser> {
    public Integer insertWxUser(@Param("xcxUser") XcxUser xcxUser);

    public XcxUser getXcxUser(@Param("openId") String openId);

    @SqlParser(filter = true)
    public List<Area> getAreaAll();

    @SqlParser(filter = true)
    public List<BaseProject> getProjectByAreaId(@Param("id") String id);

    @SqlParser(filter = true)
    public List<BaseFloor> findRoomByProjectId(@Param("projectId") String projectId);

    @SqlParser(filter = true)
    public List<BaseRoom> findRoomById(@Param("floorId") String floorId);

    @SqlParser(filter = true)
    public Integer insertCheckUser(@Param("wyRoomCheck") CyRoomCheckUser cyRoomCheckUser);

    @SqlParser(filter = true)
    List<WyRoomCheckEntity> findRoomCheckByUserId(String userId);
}
